package com.customer.example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class DemoController {

    @Autowired
    private RestTemplate restTemplate;

    private static final String ACPPLICATION_NANE = "http://study-provider/demo";

    @GetMapping("/test")
    public String demo(){
        return restTemplate.getForObject(ACPPLICATION_NANE, String.class);
    }

}
